package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 出库单表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("pay")
public class Pay implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "出库单id，主键，自增")
      @TableId(value = "pay_id", type = IdType.AUTO)
    private Integer payId;

    //@ApiModelProperty(value = "出库单编号，格式为400+年月日+4位流水号，例如400202304120002")
    private String payOrderNumber;

    //@ApiModelProperty(value = "仓库id")
    private Integer stockId;

    //@ApiModelProperty(value = "出库人")
    private String payer;

    //@ApiModelProperty(value = "出库理由，R001-1（平台出库调拨）")
    private String reason;

    //@ApiModelProperty(value = "总件数")
    private Integer totalAmount;

    //@ApiModelProperty(value = "总金额")
    private Float totalPrice;

    //@ApiModelProperty(value = "关联订单，格式为：订单id,订单id，例如：56,57,55,54")
    private String orderList;

    //@ApiModelProperty(value = "登记人")
    private String register;

    //@ApiModelProperty(value = "登记时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date registerTime;

    //@ApiModelProperty(value = "审核人")
    private String checker;

    //@ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date checkTime;

    //@ApiModelProperty(value = "审核理由")
    private String checkReason;

    //@ApiModelProperty(value = "审核状态，S001-1（等待审核）、S001-2（审核未通过）、S001-3（审核通过）")
    private String checkTag;

    //@ApiModelProperty(value = "是否删除，C001-1（未删除）、C001-2（已删除）")
    private String status;


}
